package com.sinven.entity;

import javax.persistence.*;

/**
 * NideshopComment entity. @author MyEclipse Persistence Tools
 */
/**
 * 李志伟
 * 反向生成
 */
@Entity
@Table(name = "nideshop_comment", catalog = "csf")
public class Comment implements java.io.Serializable {

    // Fields

    private Integer id;
    private String content;
    private Long addTime;
    private Short status;
    private Integer userId;
    private String picUrl;
    private Integer goodsId;

    // Constructors

    /** default constructor */
    public Comment() {
    }

    /** full constructor */
    public Comment(String content, Long addTime, Short status,Integer goodsId,
                           Integer userId, String picUrl) {
        this.content = content;
        this.goodsId=goodsId;
        this.addTime = addTime;
        this.status = status;
        this.userId = userId;
        this.picUrl = picUrl;
    }

    // Property accessors
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id", unique = true, nullable = false)
    public Integer getId() {
        return this.id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Column(name = "content", length = 6550)
    public String getContent() {
        return this.content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Column(name = "add_time")
    public Long getAddTime() {
        return this.addTime;
    }

    public void setAddTime(Long addTime) {
        this.addTime = addTime;
    }

    @Column(name = "status")
    public Short getStatus() {
        return this.status;
    }

    public void setStatus(Short status) {
        this.status = status;
    }

    @Column(name = "user_id")
    public Integer getUserId() {
        return this.userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    @Column(name = "pic_url")
    public String getPicUrl() {
        return this.picUrl;
    }

    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl;
    }
    @Column(name = "goods_Id")
    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }
}